<?php

include_once(create_path("plugin/adsm/tpl_adsm.php"));
include_once(create_path("plugin/adsm/lg_adsm_".LANG.".php"));
include_once(create_path("plugin/adsm/sql_adsm.php"));


include(create_path("plugin/adsm/conf.php"));


# we check if the plugin is installed
if($plugin_install!=1) 
{
 include(create_path("plugin/adsm/install.php"));
}
else
{
 if(!isset($_GET['v1']))
 {
  include(create_path("plugin/adsm/adsm_list.php"));
 }
 else
 {
  switch($_GET['v1']) {
   case "form_adsm" :  include(create_path("plugin/adsm/form_adsm.php")); break;
   case "adsm_list" :  include(create_path("plugin/adsm/adsm_list.php")); break;
   case "view" : include(create_path("plugin/adsm/view_adsm.php")); break;
   default : include(create_path("plugin/adsm/adsm_list.php"));
  }
 }
}
?>